<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <!-- Swiper7 -->
    <link rel="stylesheet" href="https://unpkg.com/swiper/swiper-bundle.css">
    <script src="https://unpkg.com/swiper/swiper-bundle.js"> </script>
    <script src="https://unpkg.com/swiper/swiper-bundle.min.js.map"> </script>

    <!-- 动画 -->
    <link href="https://cdn.bootcdn.net/ajax/libs/animate.css/4.1.1/animate.compat.css" rel="stylesheet">
    <link href="https://cdn.bootcdn.net/ajax/libs/animate.css/4.1.1/animate.css" rel="stylesheet">
    <link rel="stylesheet" href="https://unpkg.com/animate.css@3.5.2/animate.min.css">
    <style>
  
        #thumbs{
        margin-top:10px;
        }
        #thumbs .swiper-slide{
        line-height:90px!important;
        opacity:0.4;
        }
        #thumbs .swiper-slide-thumb-active{
        opacity:1;
        }

        #dhua1{
            display: flex;
            display: -webkit-flex;
            margin: auto;
        }

        .box{height: 100px;width: 100px;background-color: lightblue}
        .infinite{animation-iteration-count:infinite;}
    </style>
</head>

<body>
    <div style="display:block;">
        <h2>效果演示</h2>
        <p class="option-special"></p>
        <div class="swiper swiper-initialized swiper-horizontal swiper-pointer-events" id="gallery">
            <div class="swiper-wrapper" id="swiper-wrapper-5aea15d2666c8352" aria-live="polite" style="transition-duration: 0ms; transform: translate3d(-810px, 0px, 0px);">
                <div class="swiper-slide blue-slide swiper-slide-prev" role="group" aria-label="1 / 4" style="width: 800px; margin-right: 10px;" id="imgyf">
             <img src="./imges/01.jpg" alt="">   slider1</div>
                <div class="swiper-slide red-slide swiper-slide-active" role="group" aria-label="2 / 4" style="width: 800px; margin-right: 10px;">
              <img src="./imges/02.jpg" alt=""> slider2</div>
                <div class="swiper-slide orange-slide swiper-slide-next" role="group" aria-label="3 / 4" style="width: 800px; margin-right: 10px;">
              <img src="./imges/03.jpeg" alt="">  slider3</div>
                <div class="swiper-slide blue-slide" role="group" aria-label="4 / 4" style="width: 800px; margin-right: 10px;">
                <img src="./imges/01.jpg" alt="">   slider4</div>
            </div>
        <span class="swiper-notification" aria-live="assertive" aria-atomic="true"></span></div>
        <div class="swiper swiper-initialized swiper-horizontal swiper-pointer-events swiper-thumbs" id="thumbs">
            <div class="swiper-wrapper" id="swiper-wrapper-6ed89a2410418ffa1" aria-live="polite" style="transition-duration: 0ms;">
                <div class="swiper-slide blue-slide swiper-slide-visible swiper-slide-active" role="group" aria-label="1 / 4" style="width: 192.5px; margin-right: 10px;">
             <img src="./imges/01.jpg" alt=""  width="150px">    slider1</div>
                <div class="swiper-slide red-slide swiper-slide-visible swiper-slide-next swiper-slide-thumb-active" role="group" aria-label="2 / 4" style="width: 192.5px; margin-right: 10px;">
             <img src="./imges/02.jpg" alt=""  width="150px">   slider2</div>
                <div class="swiper-slide orange-slide swiper-slide-visible" role="group" aria-label="3 / 4" style="width: 192.5px; margin-right: 10px;">
             <img src="./imges/03.jpeg" alt="" width="150px">  slider3</div>
                <div class="swiper-slide blue-slide swiper-slide-visible" role="group" aria-label="4 / 4" style="width: 192.5px; margin-right: 10px;">
              <img src="./imges/01.jpg" alt=""  width="150px">   slider4</div>
            </div>
        <span class="swiper-notification" aria-live="assertive" aria-atomic="true"></span></div>
<hr/>
<br/><br/>
<div id="dhua1">
<h1 class="wobble animated infinite" style="margin: auto;">animate.css</h1>
<h1 class="bounceInRight bounceOutLeft animated infinite" style="margin: auto;">animate.css</h1>
<h1 class="bounceOutRight animated infinite" style="margin: auto;">animate.css</h1>
<h1 class="rotateIn animated infinite" style="margin: auto;">animate.css</h1>

<button id="btn1">添加循环的动画效果</button>
<button id="btn2">移除</button>
<div id="box" class="box"></div>
</div>
<br/><br/><br/><br/>
        <script language="javascript"> 

  
        var gallerySwiper = new Swiper('#gallery',{
          autoplay : true,
          spaceBetween: 10,
          thumbs: {
            swiper: {
              el: '#thumbs',
              spaceBetween: 10,
              slidesPerView: 4,
              watchSlidesVisibility: true,
            },
          },
          
        })

        var oBtn1 = document.getElementById('btn1');
        var oBtn2 = document.getElementById('btn2');
        var oBox = document.getElementById('box');
        oBtn1.onclick = function(){
        oBox.classList.add('animated');
        oBox.classList.add('flash'); //闪烁
        oBox.classList.add('infinite');
        }
        oBtn2.onclick = function(){
        oBox.classList.remove('flash'); 
        }
        </script>
       

</body>

</html>